package com.xmg.p2p.base.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
abstract public class QueryObject {

	private Integer currentPage = 1;


	private Integer pageSize = 10;


	public void setPageSize(Integer pageSize){
		this.pageSize = pageSize;
	}

	/*start也是没有这个属性，直接写了一个get方法*/
	public int getStart() {
		return (currentPage - 1) * pageSize;
	}

}
